Skip to content

Update defunct code#289

Merged
mguthaus merged 2 commits into
VLSIDA:stablefrom
goobber-gawber:update-defunct-code
Apr 8, 2026
Merged

Update defunct code#289
mguthaus merged 2 commits into
VLSIDA:stablefrom
goobber-gawber:update-defunct-code

Conversation

@goobber-gawber
Copy link
Copy Markdown

Hi!

As previously announced here's the patch that removes defunct (mostly Python 2) code from the codebase

gbrlwck added 2 commits March 31, 2026 22:28
* compiler/modules/multibank.py (multibank) [compute_sizes]: Fix
syntax error.
The few Python 2 statements are replaced with their modern
counterparts.  These are one of the following:
 - print() function calls (instead of statements),
 - Exception and Error raising,
 - passing/receiving tuples as function/lambda arguments,
 - the L suffix for numeral constants.

* compiler/gdsMill/pyx/box.py,
  compiler/gdsMill/pyx/connector.py,
  compiler/gdsMill/pyx/deformer.py,
  compiler/gdsMill/pyx/dvifile.py,
  compiler/gdsMill/pyx/epsfile.py,
  compiler/gdsMill/pyx/font/afm.py,
  compiler/gdsMill/pyx/font/t1font.py,
  compiler/gdsMill/pyx/graph/axis/texter.py,
  compiler/gdsMill/pyx/graph/axis/tick.py,
  compiler/gdsMill/sram_examples/cell6tDemo.py,
  compiler/gdsMill/sram_examples/newcell.py: Modernize syntax.
@mguthaus
Copy link
Copy Markdown
Collaborator

mguthaus commented Apr 8, 2026

Looks good, though I would probably just remove the defunct Python 2 examples in gdsMill. It's not clear that they work anymore as they aren't in unit tests.

@mguthaus mguthaus merged commit 29e8521 into VLSIDA:stable Apr 8, 2026
@mguthaus
Copy link
Copy Markdown
Collaborator

mguthaus commented Apr 8, 2026

PR should go to dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants